#include "mainwindow.h"
#include "./ui_mainwindow.h"


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    // 设置窗口属性
    setWindowFlags(Qt::FramelessWindowHint);
    setAttribute(Qt::WA_TranslucentBackground, false);
    // 设置窗口最大化
    this->setWindowState(Qt::WindowMaximized);

    this->m_titleBar = new CustomTitleBar(this, true);
}

MainWindow::~MainWindow()
{
    delete ui;
}


